/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

/* 设置最大宽度并使页面内容居中 */
.container {
    max-width: 600px; /* 最大宽度为600px，适应电脑端 */
    width: 100%; /* 在移动端自适应宽度 */
    margin: 0 auto; /* 居中显示 */
    padding-bottom: 80px; /* 留出底部按钮的空间 */
}

/* 游戏图标 + 名字 + 类型 + 特色标签 */
.game-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* 设置右边界 */
    width: 100%;
    max-width: 600px; /* 限制最大宽度 */
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0 auto; /* 居中显示 */
}

.game-header img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 15px;
}

.game-header .game-info {
    display: flex;
    width: 345px;
    flex-direction: column;
    justify-content: flex-start;
}

.game-header .game-info h1 {
    margin: 0;
    font-size: 20px;
}

.game-header .game-info .game-type {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* 新增 .purchase-entry 右对齐样式 */
.purchase-entry {
    /* 其他样式保持不变 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ff9500, #ff5f03);
    border-radius: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(255, 95, 3, 0.2);
    transition: transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.purchase-entry .img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1); /* 图片反白处理 */
}

.purchase-entry .text {
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1; /* 保持文字与图标对齐 */
}

/* 点击反馈 */
.purchase-entry:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* 小屏适配 */
@media (max-width: 375px) {
    .purchase-entry {
        padding: 6px 10px;
        gap: 3px;
    }
    .purchase-entry .img {
        width: 18px;
        height: 18px;
    }
    .purchase-entry .text {
        font-size: 13px;
    }
}

/* 游戏特色标签 */
.game-feature {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.game-feature .feature-tag {
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    line-height: 1.5; /* 根据需求调整 */
}

/* 内容部分 */
.content {
    padding: 15px;
    margin-top: 120px; /* 留出游戏头部固定部分的空间 */
}

.link-url {
    display: block;
    margin-bottom: 10px; /* 可选：用于在链接之间增加间距 */
}

.game-description {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}

.game-description a {
    color: #007bff;
    text-decoration: none;
}

.game-description a:hover {
    text-decoration: underline;
}

/* 游戏截图样式 */
.screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.screenshots img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 底部按钮 */
.footer-buttons {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background-color: #333;
    gap: 10px;
    width: 100%;
    margin: 0 auto; /* 居中显示 */
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
}

.footer-buttons a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #ff9900;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    width: 48%;
}

.footer-buttons a:hover {
    background-color: #ff7f00;
}
